package com.bee.oa.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.oa.dao.sm.UserDao;
import com.bee.oa.domain.sm.User;
import com.bee.oa.service.sm.UserService;

public class UserServiceImpl implements UserService {

	private UserDao userDao;

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public Serializable save(User entity) {
		return userDao.save(entity);
	}

	@Override
	public void saveAll(Collection<User> entities) {
		userDao.saveAll(entities);
	}

	@Override
	public User get(Long sid) {
		return userDao.get(sid);
	}

	@Override
	public List<User> find(String queryString, Object... values) {
		return userDao.find(queryString, values);
	}

	@Override
	public List<User> find(User entity) {
		return userDao.find(entity);
	}

	@Override
	public List<User> find(Map<String, String> params) {
		return userDao.find(params);
	}

	@Override
	public List<User> findAll() {
		return userDao.findAll();
	}

	@Override
	public void update(User entity) {
		userDao.update(entity);
	}

	@Override
	public void updateAll(Collection<User> entities) {
		userDao.updateAll(entities);
	}

	@Override
	public void delete(User entity) {
		userDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		userDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<User> entities) {
		userDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return userDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return userDao.page(params, pageNo, pageSize);
	}

}
